package com.study.lagou.edu.service;

import com.study.lagou.edu.service.fallback.UserServiceClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "sc-service-user", path = "/user", fallback = UserServiceClientFallback.class)
public interface IUserServiceClient {

    @GetMapping("/info/{token}")
    public String getEmailByToken(@PathVariable String token);
}
